package com.ycw.controller.guoguo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ycw.bean.ProjectsType;
import com.ycw.service.guoguo.ClassificationService;
import com.ycw.util.Msg;

/**
 * 项目类型表的增删改查
 * @author gcz
 *
 */
@Controller
public class ClassificationController {

	@Autowired
	private ClassificationService classificationService;
	
	@RequestMapping("getAllClass")
	@ResponseBody
	public Msg getAllClass(ProjectsType projectsType){
		return classificationService.getAllClass();
	}

	@RequestMapping("addClass")
	@ResponseBody
	public Msg addClass(ProjectsType projectsType){
		return classificationService.addClass(projectsType);
	}
	@RequestMapping("deleteClassById")
	@ResponseBody
	public Msg deleteClassById(ProjectsType projectsType){
		return classificationService.deleteClassById(projectsType);
	}
	@RequestMapping("alertClassById")
	@ResponseBody
	public Msg alertClassById(ProjectsType projectsType){
		return classificationService.alertClassById(projectsType);
	}
}
